package cn.wolfcode.domain;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import java.util.List;

@Setter
@Getter
@AllArgsConstructor
@NoArgsConstructor
public class JsonResult {
    private boolean success = true;
    private String msg;
    private Integer successCount;
    private Integer failureCount;
    private Object data;
    public JsonResult(boolean success,String msg){
        this.success = success;
        this.msg = msg;
    }
    public JsonResult(Integer successCount,Integer failureCount,String msg){
        this.successCount = successCount;
        this.failureCount = failureCount;
        this.msg = msg;
    }
}
